package com.wcs.exam.controller.auth.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * Auth-考试-请求参数
 * </p>
 *
 * @author wcs
 * @since 2024-07-10
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Auth-考试-人脸失败申诉(开考前)-请求参数")
public class AuthExamFaceErrorAppealReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "resource.exam.id.not.null")
    @Schema(description = "考试ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long examId;

    @Size(max = 200, message = "resource.exam.appeal.cause.length.max.limit.error")
    @NotBlank(message = "resource.exam.appeal.cause.not.null")
    @Schema(description = "申诉原因(内容限制：1~200)", requiredMode = Schema.RequiredMode.REQUIRED)
    private String appealCause;
}
